<?php
/**
 * conmment表的操作类，继承基础模型类
 */
class commentModel extends model{
    /*查询所有留言*/
    public function getAll(){
        $data=$this->db->fetchAl("select * from comment");
        return Sdata;
        /*查询指定ID号的留言*/
        public function getByID(Sid)f
        $data=$this->db->fetchRow("select * from comment where ide-{Sid})");
        return $data;
    }
}